<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../../ht-css/Project.css" />
    <link rel="stylesheet" type="text/css" href="../../../../ht-css/style-q.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>登录页配置</title>
</head>
<body data-id="454">
<body onUnload="opener.location.reload()">
<nav class="breadcrumb">运营管理 <span class="c-gray en">&gt;</span> 资源位管理 <span class="c-gray en">&gt;</span> 首页配置<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px ;display:block " href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <form class="ml-20 mr-20" id="form-member"  method="post">
        <div id="tab_topnav" class="HuiTab">
            <div class="tabBarBox clearfix"></div>
            <!--首页配置-->
            <div class="bg-1 bk-gray pb-10">
                <div class="lh-20 pd-10">
                    <table class="table_li mb-10 table">
                        <thead class="text-l">
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l text-r lh-26 w-100">选择配置内容：</label>
                                    <span class="select-box size-M radius col-xs-8 ml-10" style="width:70%">
                                    <select class="select" name="brandclass" size="1" id="category_id" onclick="discount()">
                                    </select>
                                    </span>
                                </div>
                            </td>
                            <td colspan="2" class="col-3-2">&nbsp;</td>
                        </tr>
                        </thead>
                    </table>
                    <thead>
                    <div class="line"></div>
                    <table class="table_li mb-10 table mt-10">
                        <thead class="text-l">
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l text-r lh-26 w-100">搜索标题：</label>
                                    <div class="formControls col-sm-8">
                                        <input type="text" class="input-text radius" oninput="checkMaxsssIut(this)"  name="title" placeholder="请输入标题搜索" id="title" autocomplete="off">
                                    </div>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l text-r lh-26 w-100">筛选时间：</label>
                                    <div class="f-l ml-10">
                                        <input type="text"
                                               onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'logmax\')}',startDate:'%y-%M-%d 00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"
                                               id="logmin" name="start_time" class="input-text Wdate radius f-l"
                                               style="width:130px;" placeholder="请选择时间" autocomplete="off" readonly>
                                        <span class="pd-5 f-l">&nbsp;-&nbsp;</span>
                                        <input type="text"
                                               onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'logmin\',{m:+1})}',endDate:'%y-%M-%d 00:00',dateFmt:'yyyy-MM-dd HH:mm:ss' })"
                                               id="logmax" name="end_time" class="input-text Wdate radius f-l"
                                               style="width:130px;" placeholder="请选择时间" autocomplete="off" readonly>
                                    </div>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l text-r lh-26 w-100">筛选状态：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width:50%">
                                    <select class="select" name="brandclass" size="1" id="status">
                                        <option value="0" selected>全部</option>
                                        <option value="20">生效</option>
                                        <option value="30">失效</option>
                                        <option value="10">未生效</option>
                                    </select>
                                    </span>
                                </div>
                            </td>

                        </tr>
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l text-r lh-26 w-100">筛选平台：</label>
                                    <span class="select-box size-M radius col-xs-8 ml-10" style="width:62%">
                                    <select class="select" name="brandclass" id="platform" size="1">
                                        <option value="" selected>全部</option>
                                        <option value="20" >普通平台</option>
                                        <option value="10">签约平台</option>
                                    </select>
                                    </span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l text-r lh-26 w-100">地域筛选：</label>
                                    <span class="select-box size-M radius col-xs-8 ml-10" style="width:62%">
                                    <select class="select" name="brandclass" id="warehouseCode" size="1">
                                        <option value="" selected>全部</option>
                                    </select>
                                    </span>
                                </div>
                            </td>

                        </tr>

                        </thead>
                    </table>
                    <tr>
                        <div class="text-c mb-10">
                            <input id="tianjia" type="button" class="btn btn-secondary radius size-S powerButton 456" onclick="dump_add('添加','brandhallogo_add.html')" value="添&nbsp;&nbsp;加">
                            <div class="btn btn-secondary radius size-S ml-10 powerButton 455" style="width: 70px;" onclick="beandhalllogo()">查&nbsp;&nbsp;询</div>
                            <input name="" type="reset" class="btn radius size-S ml-10 powerButton 455" value="重&nbsp;&nbsp;置">
                        </div>
                    </tr>
                </div>
                <table class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
                    <thead>
                    <tr class="text-c">
                        <th width="20">序号</th>
                        <th width="50">平台</th>
                        <th width="50">区域</th>
                        <th width="70">标题</th>
                        <th width="70">发布时间</th>
                        <th width="100">状态</th>
                        <th width="100">创建人</th>
                        <th width="50">创建时间</th>
                        <th width="50">操作</th>
                    </tr>
                    </thead>
                    <tbody class="shun">
                    </tbody>
                </table>
                <div class="mt-40"></div>
</div>
        </div>
    </form>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script>
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<script src="../../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../../ht-js/Project.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../ht-js/operation-js/operation_resource/operation-common.js?rev=@@hash"></script>
<script src="../../../../ht-js/operation-js/operation_resource/brandhalllogo-js/brandhalllogo.js?rev=@@hash"></script>

<link type="text/css" rel="stylesheet" href="../../../../ht-js/operation-js/time-js/jedate.css">
<script type="text/javascript" src="../../../../ht-js/operation-js/time-js/jquery.jedate.js?rev=@@hash"></script>
<!--引入分页-->
<link rel="stylesheet" href="../../../../lib/pagination/pagination.css">
<script src="../../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../../../ht-js/power.js?rev=@@hash"></script>
<script src="../../../../ht-js/dynamicWarehouse.js?rev=@@hash"></script>
<script>
    //限制字符
    var len
    var Preser
    var common=40//要限制输入的字数
    $('#commonText').text('('+common+')')
    function checkMaxsssIut(me) {
        var text=$(me).val()
        strlen(text)
        if(len>common){
            $(me).val(Preser)
        }else {
            Preser=$(me).val()
        }
    }
    function strlen(str){
        len = 0;
        for (var i=0; i<str.length; i++) {
            var c = str.charCodeAt(i);
            //单字节加1
            if ((c >= 0x0001 && c <= 0x007e) || (0xff60<=c && c<=0xff9f)) {
                len++;
            } else {
                len+=2;
            }
        }
        $('#textSpan').text((len>40)?40:len)
        return len;
    }

    /* 添加*/
    function dump_add(title,url){
        if($("#category_id").val()==""){
            layer.msg('请选择配置内容!', {icon: 6, time: 1000});
            return;
        }
        var category_id=$("#category_id").val();
        var index = layer.open({
            type: 2,
            title: title,
            content: url+"?category_id="+ category_id
        });
        layer.full(index);
    }
    $.validator.addMethod("titleCheck", function(value, element) {
        var tel = /^.{1,60}$/;
        return this.optional(element) || (tel.test(value));
    }, "输入有误");

    function conter() {
        beandhalllogo();
    }
</script>
</body>
</html>